package com.yisu.auction.api.core.mapper;

import com.yisu.auction.api.domain.request.BasePage;
import com.yisu.auction.api.domain.response.rechargePackge.RechargeListResponse;
import com.yisu.auction.ewf.entity.MobileRecharge;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MobileRechargeMapper {
    int deleteByPrimaryKey(Long id);

    int insert(MobileRecharge record);

    int insertSelective(MobileRecharge record);

    MobileRecharge selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(MobileRecharge record);

    int updateByPrimaryKey(MobileRecharge record);

    /**
     * author: 赵杰
     * Business Description：通过订单号获取充值订单信息
     * @param orderId
     * @return
     */
    MobileRecharge getMobileRechargeByOrderId(@Param("orderId") String orderId);

    List<RechargeListResponse> selectByMemberId(BasePage basePage);
}